package com.yoshino.facade;

/**
 * @author yoshino
 **/
public class Stereo {

    // 单例模式，使用饿汉式
    private static Stereo instance = new Stereo();

    private Stereo() {}

    public static Stereo getInstance() {
        return instance;
    }

    public void on() {
        System.out.println("stereo on");
    }
    public void off() {
        System.out.println("stereo off");
    }

}
